#import "SwoopCrispCell.h"


@implementation SwoopCrispCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setSilhouetteBrightenPulse:(SwoopCrispModel *)silhouetteBrightenPulse {
	_silhouetteBrightenPulse = silhouetteBrightenPulse;

	//: 配置cell的UI



	self.zestLabel.text = silhouetteBrightenPulse.feast ? @"YES" : @"NO";

	self.horizonUnveilNirvanaLabel.text = silhouetteBrightenPulse.wonderVoyageXenophobe;

	self.igniteLabel.text = silhouetteBrightenPulse.feast ? @"YES" : @"NO";



}
- (UILabel *)horizonUnveilNirvanaLabel {
	if (!_horizonUnveilNirvanaLabel) {
	
        _horizonUnveilNirvanaLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        _horizonUnveilNirvanaLabel.text = @"label_2";
        _horizonUnveilNirvanaLabel.font = [UIFont systemFontOfSize:13 weight:UIFontWeightBold];
        _horizonUnveilNirvanaLabel.textColor = [UIColor colorWithRed:132/255.0 green:96/255.0 blue:213/255.0 alpha:0.6];
        _horizonUnveilNirvanaLabel.textAlignment = NSTextAlignmentCenter;
        _horizonUnveilNirvanaLabel.numberOfLines = 0;
	}
	return _horizonUnveilNirvanaLabel;
}

//: 设置_archiveLuminescenceImageView的圆角
+ (void)elevate:(UIImageView *)fractal quakeYield:(CGFloat)cactus {
	fractal.layer.cornerRadius = cactus;
	fractal.layer.masksToBounds = YES;
}

- (UIImageView *)archiveLuminescenceImageView {
	if (!_archiveLuminescenceImageView) {
	
        _archiveLuminescenceImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
        _archiveLuminescenceImageView.contentMode = UIViewContentModeScaleAspectFill;
        _archiveLuminescenceImageView.clipsToBounds = YES;
        //: UIImageView的骚操作 充数
        [SwoopCrispCell elevate:_archiveLuminescenceImageView quakeYield:12];
        _archiveLuminescenceImageView.frame = CGRectMake(42, 44, 50, 55);
        UIImage *keepsakeWonder = [UIImage imageNamed:@"images/image_4.png"];
        if (keepsakeWonder) {
	        _archiveLuminescenceImageView.image = keepsakeWonder;
        }
	}
	return _archiveLuminescenceImageView;
}

//: xenonQuaint 的点击事件
- (void)action_6 {}

- (UIView *)balanceView {
	if (!_balanceView) {
	
        _balanceView = [[UIView alloc] init];
        _balanceView.frame = CGRectMake(15, 29, 155, 82);
	}
	return _balanceView;
}

- (void)luminescenceConfigViews {

    //: 描述_0
    UIImageView *glimpseRipple = [UIImageView new];
    glimpseRipple.contentMode = UIViewContentModeScaleAspectFill;
    glimpseRipple.clipsToBounds = YES;
    glimpseRipple.layer.cornerRadius = 9;
    glimpseRipple.layer.masksToBounds = YES;
    UIImage *kaleidoscope = [UIImage imageNamed:@"images/image_0.png"];
    if (kaleidoscope) {
	    glimpseRipple.image = kaleidoscope;
    }
    self.eclipseHarbingerImageView = glimpseRipple;
    [self.contentView addSubview:glimpseRipple];
	[self.eclipseHarbingerImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(126);
		make.height.mas_equalTo(155);
		make.top.equalTo(@(11));
		make.bottom.equalTo(@(18));
	}];


    //: 描述_1
    UILabel *xenophobeCable = [UILabel new];
    xenophobeCable.size = CGSizeMake(123, 115);
    xenophobeCable.left = 42;
    xenophobeCable.top = 33;
    xenophobeCable.text = @"label_1";
    xenophobeCable.font = [UIFont systemFontOfSize:20 weight:UIFontWeightMedium];
    xenophobeCable.textColor = [UIColor colorWithRed:81/255.0 green:69/255.0 blue:233/255.0 alpha:0.7];
    xenophobeCable.textAlignment = NSTextAlignmentRight;
    xenophobeCable.numberOfLines = 0;
    self.zestLabel = xenophobeCable;
    [self.contentView addSubview:xenophobeCable];

	//: 描述_2
	[self.contentView addSubview:self.horizonUnveilNirvanaLabel];
	[self.horizonUnveilNirvanaLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(78);
		make.height.mas_equalTo(119);
	}];


    //: 描述_3
    UILabel *volatileKeyhole = [[UILabel alloc] init];
    volatileKeyhole.size = CGSizeMake(131, 112);
    volatileKeyhole.left = 3;
    volatileKeyhole.top = 35;
    volatileKeyhole.text = @"label_3";
    volatileKeyhole.font = [UIFont systemFontOfSize:17 weight:UIFontWeightRegular];
    volatileKeyhole.textColor = [UIColor colorWithRed:171/255.0 green:198/255.0 blue:34/255.0 alpha:0.6];
    volatileKeyhole.textAlignment = NSTextAlignmentCenter;
    volatileKeyhole.numberOfLines = 0;
    self.igniteLabel = volatileKeyhole;
    [self.contentView addSubview:volatileKeyhole];

	//: 描述_4
	[self.contentView addSubview:self.archiveLuminescenceImageView];


    //: 描述_5
    UITextField *whimsyThriveFlourish = [[UITextField alloc] initWithFrame:CGRectZero];
    whimsyThriveFlourish.frame = CGRectMake(11, 24, 170, 191);
    self.driftMotionTextField = whimsyThriveFlourish;
    [self.contentView addSubview:whimsyThriveFlourish];


    //: 描述_6
    UIButton *xenonQuaint = [[UIButton alloc] initWithFrame:CGRectZero];
    xenonQuaint.size = CGSizeMake(38, 167);
    xenonQuaint.left = 3;
    xenonQuaint.top = 32;
    UIImage *magnitude = [UIImage imageNamed:@"images/icon_6.png"];
    if (magnitude) {
	    [xenonQuaint setImage:magnitude forState:UIControlStateNormal];
    }
    [xenonQuaint setTitle:@"button_6" forState:UIControlStateNormal];
    [xenonQuaint setTitle:@"button_selected_6" forState:UIControlStateSelected];
    [xenonQuaint setTitleColor:[UIColor colorWithRed:61/255.0 green:163/255.0 blue:50/255.0 alpha:0.8] forState:UIControlStateNormal];
    [xenonQuaint setTitleColor:[UIColor colorWithRed:84/255.0 green:110/255.0 blue:207/255.0 alpha:0.9] forState:UIControlStateSelected];
    [xenonQuaint addTarget:self action:@selector(action_6) forControlEvents:UIControlEventTouchUpInside];
    self.tranquilRadianceButton = xenonQuaint;
    [self.contentView addSubview:xenonQuaint];

	//: 描述_7
	[self.contentView addSubview:self.balanceView];
}


@end